package com.hx.io.nio;

import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;

/**
 * @author jxlgcmh
 * @date 2019-08-04 15:01
 */
public class NIOClient {
    public static void main(String[] args) throws IOException {
        Socket socket = new Socket("127.0.0.1", 8899);
        OutputStream outputStream = socket.getOutputStream();
        outputStream.write("how are you".getBytes());
        outputStream.close();
    }
}
